from gemini_antenna.db import AntennaDB

def test_queue(db: AntennaDB):
    feed1 = "gemini://example.com/feed"
    feed2 = "https://example.org/atom.xml"

    db.queueFeed(feed1, feed2)
    queue = db.getQueue()
    assert feed1 in queue
    assert feed2 in queue

    db.deleteFromQueue(feed2)
    queue = db.getQueue()
    assert feed1 in queue
    assert feed2 not in queue
